package com.zzyk.main.service.impl;


import com.zzyk.main.mapper.SysDeviceDao;
import com.zzyk.main.model.vo.DeviceInfo;
import com.zzyk.main.service.ISysDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDeviceServiceImpl implements ISysDeviceService {

    @Autowired
    private SysDeviceDao sysDeviceDao;

    @Override
    public DeviceInfo getDeviceById(int id) {
        return sysDeviceDao.getDeviceById(id);
    }

    @Override
    public List<DeviceInfo> getDeviceByOrganizationId(int id) {
        return sysDeviceDao.getDeviceByOrganizantion(id);
    }
}
